home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Component;
- import java.awt.Graphics;
-
- public class GraphApplet extends Applet {
- // $FF: renamed from: f (double) double
- double method_0(double x) {
- return (Math.cos(x / (double)5.0F) + Math.sin(x / (double)7.0F) + (double)2.0F) * (double)((Component)this).size().height / (double)4.0F;
- }
-
- public void paint(Graphics g) {
- for(int x = 0; x < ((Component)this).size().width; ++x) {
- g.drawLine(x, (int)this.method_0((double)x), x + 1, (int)this.method_0((double)(x + 1)));
- }
-
- }
- }
-